package top.bbman.boot.mybatis.log;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.logging.stdout.StdOutImpl;
import top.bbman.boot.logger.LogConstant;

public class PeaStdOutImpl extends StdOutImpl {

    public PeaStdOutImpl(String clazz) {
        super(clazz);
    }

    @Override
    public void error(String s, Throwable e) {
        super.error(s, e);
        LogConstant.bbManMybatis.error(s, e);
    }

    @Override
    public void debug(String s) {
        super.debug(s);
        LogConstant.bbManMybatis.debug(s);
    }

    @Override
    public void error(String s) {
        super.error(s);
        LogConstant.bbManMybatis.error(s);
    }

    @Override
    public void trace(String s) {
        super.trace(s);
        LogConstant.bbManMybatis.trace(s);
    }

    @Override
    public void warn(String s) {
        super.warn(s);
        LogConstant.bbManMybatis.warn(s);
    }
}
